import React, { Component } from 'react';
import { StoreProvider } from 'iflux2';
import AppStore from './store';

import { Form } from 'antd';
import IntegralForm from './component/integral-form';


@StoreProvider(AppStore)
class Integral extends Component {
    componentDidMount() {
        this.props.store.init();
    }

    componentDidUpdate() {
        this._search.forceUpdate();
    }

    render() {
        return (
            <IntegralForm form={this.props.form} ref={search => this._search = search}/>
        )
    }
}

Integral = Form.create({})(Integral);
export default Integral;